<template>
  <div class="StaffCard">
    <div class="staff clearfix">
      <van-image fit="cover" :src="staffInfo.img" />
      <div class="centenbox">
        <div class="staff_name">{{staffInfo.name}}<span  class="wages">{{staffInfo.wages[0]}}元/<span>{{staffInfo.wages[1]}}天</span></span></div>
        <ul class="staff_label">
          <li v-for="(item,index) in staffInfo.level" :key="index">{{item}}</li>
        </ul>
        <div class="staff_motto"><span>{{staffInfo.address}} | </span><span>{{staffInfo.age}}岁 | </span><span>{{staffInfo.service}} | </span><span>{{staffInfo.evaluate}}</span></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BusinessCard',
  props: {
    staffInfo: {
      type: Object,
      required: true
    }
  }
}
</script>

<style scoped lang="less">
.StaffCard {
  .staff {
    padding: 2 * 17px 2 * 16px;
    background-color: #fff;
    .centenbox {
      float: left;
      .staff_name {
        font-size: 28px;
        color: #000;
        font-weight: 700;
        margin-bottom: 26px;
        .wages{
          float: right;
          margin-right: -40px;
          font-size: 26px;
          color: #9a918e;
          span{
             font-weight: 400;
            font-size: 20px;
          }
        }
      }
      .staff_motto {
        color: #979191;
        font-size: 24px;
      }
      .staff_label {
        color: #3F51B5;
        font-size: 20px;
        display: flex;
        margin-bottom: 26px;
        justify-content: center;
        li {
          border: 2px solid #3F51B5;
          padding: 8px 28px;
          border-radius: 30px;
          margin: 0 8px;
        }
      }
    }
    .van-image {
      float: left;
      width: 2 * 80px;
      height: 2 * 79px;
      padding-right: 22px;
    }
  }
  .clearfix:before,
  .clearfix:after {
    content: '';
    display: table;
  }
  .clearfix:after {
    clear: both;
  }
  /* ie6 7 专门清除浮动的样式*/
  .clearfix {
    *zoom: 1;
  }
}
</style>
